package com.taobao.livis.ch01;

public class MyThread2 implements Runnable {
	
	public MyThread2(){
		
	}

	@Override
	public void run() {
		for(int i=0;i<10;i++){
			System.out.println(Thread.currentThread().getName()+" print "+i);
		}
	}
	
	public static void main(String[] args){
		for(int i=0;i<5;i++){
			MyThread2 r = new MyThread2();
			Thread t = new Thread(r, "thread"+i);
			t.start();
		}
	}

}
